package com.ruoyi.hr.service.welfare.welfarechange;

import com.ruoyi.hr.domain.Authority;
import com.ruoyi.hr.domain.welfare.welfarechange.WelfareChange;
import com.ruoyi.hr.util.BaseResult;

import java.util.List;
import java.util.Map;

public interface WelfareChangeService {
    List<WelfareChange> findDataWelfareChange(WelfareChange welfareChange,List<Authority> authorities,int isAdmin);

    /**
     * 执行存储过程
     *
     * @param sql
     * @return
     */
    String executeProcedure(String sql);

    /**
     * 添加人员存储过程
     *
     * @param allPeid
     * @return
     */
    BaseResult addChangeProcedure(String allPeid);

    /**
     * 执行确认检查，取消确认，变动处理
     *
     * @param allId
     * @param procedure
     * @return
     */
    BaseResult changeProcedure(String allId, String procedure);

    /**
     * 根据获取单个数据
     */
    WelfareChange findWelfareChangeById(String id);

    /**
     * 修改变更
     */
    public int updateWelfareChange(WelfareChange welfareChange);
}

